package summer_vacation.shilaihong.oneday;

/**
 * Created by alh on 2015/9/5.
 */
public class N28 {
    public static void main(String[] args) {
        int fibonacci[]=new int[20];
        fibonacci[0]=1;
        fibonacci[1]=1;
        for(int i=2;i<20;i++){
            fibonacci[i]=fibonacci[i-1]+fibonacci[i-2];
        }
        for(int a=0;a<20;a++){
            if (a%5==0 && a!=0){
                System.out.println(fibonacci[a]);
            }else {
                System.out.print(fibonacci[a] + "  ");
            }
        }

    }
}
